//-----------------------------------------------------------------------
// <copyright file="a_DomPrefMService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_DomPrefMService
    {
        #region a_DomPrefM

        public static void Createa_DomPrefM(a_DomPrefM a_DomPrefM)
        {            
            try
            {
                a_DomPrefMDAO a_DomPrefMDAO = new a_DomPrefMDAO();
                a_DomPrefMDAO.Createa_DomPrefM(a_DomPrefM);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_DomPrefM(a_DomPrefM a_DomPrefM)
        {            
            try
            {
                a_DomPrefMDAO a_DomPrefMDAO = new a_DomPrefMDAO();
                a_DomPrefMDAO.Updatea_DomPrefM(a_DomPrefM);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_DomPrefM(int domPrefMID)
        {            
            try
            {
                a_DomPrefMDAO a_DomPrefMDAO = new a_DomPrefMDAO();
                a_DomPrefMDAO.Deletea_DomPrefM(domPrefMID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_DomPrefM Geta_DomPrefM(int domPrefMID)
        {            
            try
            {
                a_DomPrefMDAO a_DomPrefMDAO = new a_DomPrefMDAO();
                return a_DomPrefMDAO.Geta_DomPrefM(domPrefMID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_DomPrefMCollection Geta_DomPrefMList(a_DomPrefMColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_DomPrefMDAO a_DomPrefMDAO = new a_DomPrefMDAO();
                return a_DomPrefMDAO.Geta_DomPrefMList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_DomPrefMCollection Geta_DomPrefMList(a_DomPrefMColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_DomPrefMDAO a_DomPrefMDAO = new a_DomPrefMDAO();
                return a_DomPrefMDAO.Geta_DomPrefMList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}